#ifndef CONST_H
#define CONST_H

#include <QVector>

constexpr auto version = "A";

constexpr uchar IGN = 1;
//以下数据来自https://scratch.mit.edu/projects/282814322/
//乐器映射
const QVector<uchar> patchMap(
	{1,	 1,	 2,	 1,	 2,	  2,  1,  1,  19, 19,  17, 16, 19, 19,	19, 19,
	 3,	 3,	 3,	 3,	 3,	  3,  3,  3,  4,  4,   5,  5,  5,  5,	5,	4,
	 6,	 6,	 7,	 6,	 6,	  6,  6,  6,  8,  8,   8,  8,  8,  7,	8,	8,
	 8,	 8,	 8,	 8,	 15,  15, 15, 8,  9,  9,   9,  9,  9,  9,	9,	9,
	 11, 11, 11, 11, 14,  10, 14, 10, 12, 12,  13, 13, 13, 13,	13, 13,
	 20, 3,	 20, 20, 20,  20, 20, 20, 21, 21,  21, 21, 21, 21,	21, 21,
	 21, 21, 7,	 15, 16,  16, 18, 15, 4,  7,   19, 21, 19, IGN, 8,	11,
	 7,	 7,	 18, 19, IGN, 18, 21, 7,  5,  IGN, 18, 13, 16, 18,	15, 18});
const QVector<uchar> drumMap({2,  2,  3,  1,  8,  1,  14, 6,  13, 6,  14, 5,
							  14, 13, 4,  13, 5,  4,  7,  7,  4,  11, 4,  17,
							  4,  13, 14, 13, 13, 14, 13, 14, 9,  10, 15, 15,
							  12, 12, 16, 16, 9,  10, 10, 18, 18, 12, 12});

//以下数据原创，自己测的
//音量调校
const QVector<uchar> patchVolFac({60, 85, 65, 45, 65, 80, 55, 30, 90, 55, 55,
								  60, 60, 60, 45, 31, 30, 25, 70, 15, 55});
const QVector<uchar> drumVolFac(
	{60, 90, 55, 25, 64, 65, 62, 52, 43, 43, 55, 55, 80, 52, 65, 47, 40, 45});

#endif // CONST_H
